import 'package:grocery_app_demo/api/entity/shipper_list_res_entity.dart';
import 'package:grocery_app_demo/generated/json/base/json_convert_content.dart';

ShipperListResEntity $ShipperListResEntityFromJson(Map<String, dynamic> json) {
  final ShipperListResEntity shipperListResEntity = ShipperListResEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    shipperListResEntity.id = id;
  }
  final String? shipperName = jsonConvert.convert<String>(json['shipperName']);
  if (shipperName != null) {
    shipperListResEntity.shipperName = shipperName;
  }
  return shipperListResEntity;
}

Map<String, dynamic> $ShipperListResEntityToJson(ShipperListResEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['shipperName'] = entity.shipperName;
  return data;
}